package com.park.service.impl.article;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.article.ArticleTypeModel;
import com.park.client.service.article.ArticleTypeService;
import com.park.dao.article.ArticleTypeMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("articleTypeService")
public class ArticleTypeServiceImpl extends BaseServiceImpl<ArticleTypeModel>  implements ArticleTypeService {
	
	@Autowired
	private ArticleTypeMapper articleTypeMapper;

	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return articleTypeMapper.deleteByPrimaryKey(id)==1;
	}

	@Override
	public boolean insert(ArticleTypeModel record) {
		return articleTypeMapper.insert(record)==1;
	}

	@Override
	public boolean insertSelective(ArticleTypeModel record) {
		return articleTypeMapper.insertSelective(record)==1;
	}

	@Override
	public ArticleTypeModel selectByPrimaryKey(Long id) {
		return articleTypeMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(ArticleTypeModel record) {
		return articleTypeMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKey(ArticleTypeModel record) {
		return articleTypeMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<ArticleTypeModel> selectAll() {
		return articleTypeMapper.selectAll();
	}

	@Override
	public List<ArticleTypeModel> selectByCategory(Integer category) {
		return articleTypeMapper.selectByCategory(category);
	}

	@Override
	public List<ArticleTypeModel> selectByColumn() {
		return articleTypeMapper.selectByColumn();
	}

	@Override
	public List<ArticleTypeModel> selectPagination(ArticleTypeModel t) {
		return articleTypeMapper.selectPagination(t);
	}

	@Override
	public Integer selectTotal(ArticleTypeModel t) {
		return articleTypeMapper.selectTotal(t);
	}
}
